<admintpl file="header" />
</head>
<body style="min-width: 800px;">
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Crawler/index')}">爬取对象管理</a></li>
    </ul>
    <form class="js-ajax-form" method="post">
        <div class="table-actions">
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/check',array('check'=>1))}" data-subcheck="true">{:L('AUDIT')}</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/check',array('uncheck'=>1))}" data-subcheck="true">{:L('CANCEL_AUDIT')}</button>
            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th width="50">ID</th>
                <th width="100">Title</th>
                <th width="50">username</th>
                <th width="50">来源</th>
                <th width="50">主播类别</th>
                <th width="50">新闻发布量</th>
                <th width="80">最近更新时间</th>
                <th width="20">{:L('STATUS')}</th>
                <th width="80">{:L('ACTIONS')}</th>
            </tr>
            </thead>
            <php>
                $from=array("toutiao"=>"今日头条","other"=>"其他");
            </php>
            <foreach name="anchors" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.username}</td>
                    <td>{$from[$vo['platform']]}</td>
                    <td>{$vo.anchor_type}</td>
                    <td>{$vo.news_num}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['news_updatetime'])}</td>
                    <td>
                        <notempty name="vo.status">
                            <a data-toggle="tooltip" title="已审核"><i class="fa fa-check"></i></a>
                            <else/>
                            <a data-toggle="tooltip" title="未审核"><i class="fa fa-close"></i></a>
                        </notempty>
                    </td>
                    <td>
                        <a target="_blank" href="__ROOT__/{$vo.url}">查看原文</a> |
                        <a href="{:U('Crawler/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
        </table>
        <div class="table-actions">
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/check',array('check'=>1))}" data-subcheck="true">{:L('AUDIT')}</button>
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/check',array('uncheck'=>1))}" data-subcheck="true">{:L('CANCEL_AUDIT')}</button>
            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Crawler/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
        </div>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>